home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13218 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: jblhome.ping.dk!usenet
  2. From: jacob@jblhome.ping.dk (Jacob Lorensen)
  3. Newsgroups: comp.unix.programmer,comp.lang.c
  4. Subject: Re: Applying file masks in UNIX using C/C++
  5. Date: 04 Apr 1996 11:26:33 +0200
  6. Organization: Jacobs home computer.
  7. Sender: jacob@pippin.jblhome.ping.dk
  8. Message-ID: <m1g2akuyph.fsf@pippin.jblhome.ping.dk>
  9. References: <31618AFE.5476@netrover.com>
  10. NNTP-Posting-Host: pippin.jblhome.ping.dk
  11. Mime-Version: 1.0
  12. Content-Type: text/plain; charset=iso-8859-1
  13. Content-Transfer-Encoding: 8bit
  14. In-reply-to: Stephane Charette's message of Tue, 2 Apr 1996 20:15:58 GMT
  15. X-Newsreader: Gnus v5.1
  16.  
  17. >>>>> "Stephane" == Stephane Charette <charrick@netrover.com> writes:
  18.  
  19.     Stephane> This is a long shot...but...does anyone know of the
  20.     Stephane> existence of public domain C/C++ code which will apply a
  21.     Stephane> file mask to an existing filename and return a TRUE or
  22.     Stephane> FALSE response?
  23.  
  24. How about this?
  25.  
  26.    WILDMAT(3)                                             WILDMAT(3)
  27.  
  28.  
  29.    NAME
  30.       wildmat - perform shell-style wildcard matching
  31.  
  32.    SYNOPSIS
  33.       int
  34.       wildmat(text, pattern)
  35.           char       *text;
  36.           char       *pattern;
  37.  
  38.    DESCRIPTION
  39.       Wildmat  compares the text against the pattern and returns
  40.       non-zero if the pattern matches the text.  The pattern  is
  41.       interpreted  according  to rules similar to shell filename
  42.       wildcards, and not as a full regular  expression  such  as
  43.       those  handled  by  the  grep(1) family of programs or the
  44.       regex(3) or regexp(3) set of routines.
  45.  
  46.    [...]
  47.  
  48.    HISTORY
  49.       Written  by  Rich  $alz  <rsalz@uunet.uu.net> in 1986, and
  50.       posted to Usenet several times since then, most notably in
  51.       comp.sources.misc in March, 1991.
  52.  
  53. So I would suggest an archie search for wildmat or a search in
  54. comp.sources.misc archives.
  55.  
  56. Hope this helps,
  57. Jacob. 
  58. -- 
  59. Jacob Lorensen; Mosebuen 33, 1.; DK-2820 Gentofte, Denmark; +45-31560401
  60. PGP Key fingerprint =  1E 87 26 46 74 36 DC 4A  72 3B 66 78 C5 AD 9E 71
  61. Public key available at the keyservers.
  62.